﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Deflection
{
    class HexagonEnemy : Enemy
    {
        public static Texture2D EnemySprite { get; set; }

        public HexagonEnemy(Vector2 position, Texture2D texture)
            : base(position, texture, Color.GhostWhite)
        {
            Type = EnemyType.HexagonEnemy;
            ParticleSystem.fadeRate = 1.0f;
            ParticleSystem.spriteScale = 0.3f;
        }

        public override void Update(GameTime gameTime)
        {

            switch (State)
            {
                case EnemyState.Spawning:

                    State = EnemyState.Alive;

                    break;
                case EnemyState.Alive:

                    break;
                case EnemyState.Dying:


                    break;
                case EnemyState.Dead:
                    Die();
                    break;
            }



            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            switch (State)
            {
                case EnemyState.Spawning:
                    break;
                case EnemyState.Alive:

                    if (isCore)
                    {
                        Color = Color.GreenYellow;
                    }
                    else
                    {
                        Color = Color.WhiteSmoke;
                    }


                    break;
                case EnemyState.Dying:


                    break;
                case EnemyState.Dead:
                    break;
            }


            base.Draw(gameTime, spriteBatch);

        }
    }
}